package business.report.impl;

import business.report.ForeignTradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.ForeignTrade;
import report.domain.ForeignTradeCriteria;
import report.mapper.ForeignTradeMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "foreignTradeService")
public class ForeignTradeServiceImpl implements ForeignTradeService{
    @Autowired
    ForeignTradeMapper foreignTradeMapper;

    @Override
    public List<ForeignTrade> getForeignTrade() {
        ForeignTradeCriteria criteria = new ForeignTradeCriteria();
        criteria.createCriteria().getAllCriteria();
        return foreignTradeMapper.selectByExample(criteria);
    }
}
